package pe.edu.upc.dsd.jms;

import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class QueueListener implements MessageListener{

	public void onMessage(Message message) {

		TextMessage text = (TextMessage) message;
		try {
			System.out.println(text.getText());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
